'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: study_cal.py
* @Time: 2025/6/15
* @All Rights Reserve By Brtc
'''
# + 运算
int_a = 2
int_b = 3
print(f"int_a  + int_b = {int_a + int_b}")

# + 被重载了
# class  A
#b = A()
#c = A()
# LCEL |
str_a = "hello"
str_b = " world"
print(f"str_a  + str_b = {str_a + str_b}")


# - 运算
print(f"int_a  - int_b = {int_a - int_b}")

# 乘法
print(f"int_a*int_b = {int_a * int_b}")

# 除法
print(f"int_a/int_b = {int_a/int_b}")


# 地板除法
print(f"6//5 = {6//5}") # 1
print(f"-6//5 = {-6//5}")# -1?  -2


#逻辑运算符
# 计算结果应该是只有   0 和 1
var_a = 3 & 5# 两边不同时为0 那就部位0
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")
var_a = 0 & 5# 两边不同时为0 那就部位0
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")
var_a = 0 & 0# 两边不同时为0 那就部位0
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")

# 逻辑运算符或
print("===========================================================")
var_a = 3 | 5# 两边不同时为0 那就部位1   0000011 | 0000101 =   00000111 = 7
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")# 0000000 | 0000101 =   00000111 = 5
var_a = 0 | 5# 两边不同时为0 那就部位0
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")
var_a = 0 | 0# 两边不同时为0 那就部位0
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")


# %
print("===========================================================")
var_a = 3 % 5
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")
var_a = 7 % 5
print(f"var_a = {var_a}, type(var_a) = {type(var_a)}")